<?php
apf_require_controller("Abstract");

class Ajax_GetFlowCountController extends AbstractController {

    public function handle_request() {
        $flow_bll = new Bll_Flow_Info();
        $where = array(
                'user_id'=>$this->user_info['user_id'],
                'role_list'=>$this->user_info['role_list']
        );
        $flow_count = $flow_bll->get_all_flow_list($where,0,0);
        $this->json_encode(1,$flow_count['count']);
    }
}
